export const optionColumn = [
	{
		label: "隐患名称",
		prop: "yhmc",
		align: "center"
	},
	{
		label: "检查标题",
		prop: "jcbt",
		align: "center"
	},
	{
		label: "检查单编号",
		prop: "jcbbh",
		align: "center",
		search: true
	},
	{
		label: "计划检查日期",
		prop: "jhjcrq",
		align: "center",
		width: 110
	},
	{
		label: "受检对象",
		prop: "sjdxName",
		align: "center",
		width: 100
	},
	{
		label: "检查结论",
		prop: "jcjl",
		align: "center",
		width: 100,
		type: "select",
		dicData: [{
			label: "未检",
			value: "1"
		}, {
			label: "正常",
			value: "2"
		}, {
			label: "异常",
			value: "3"
		}]
	},
	{
		label: "隐患级别",
		prop: "yhjb",
		align: "center",
		search: true,
		width: 90
	},
	{
		label: "整改方式",
		prop: "zgfs",
		align: "center",
		width: 90,
		type: "select",
		dicData: [{
			label: "立刻整改",
			value: 1
		}, {
			label: "整改通知",
			value: 2
		}]
	},
	{
		label: "责任部门",
		prop: "fzzgbmName",
		align: "center",
		width: 100
	},
	{
		label: "现场照片",
		prop: "xczp",
		align: "center",
		slot: true,
		width: 90,
		viewDisplay: false
	},
	{
		label: "整改附件",
		prop: "zgxgfjFile",
		align: "center",
		slot: true,
		width: 90,
		viewDisplay: false
	},
	{
		label: "排查设置",
		prop: "setting",
		align: "center",
		slot: true,
		width: 110,
		viewDisplay: false
	},
	{
		label: "排查结果",
		prop: "result",
		align: "center",
		slot: true,
		width: 110,
		viewDisplay: false
	},
	{
		label: "整改设置",
		prop: "improve",
		align: "center",
		slot: true,
		width: 110,
		viewDisplay: false
	},
]

export const checkOptionColumn = [
	{
		label: "检查项目",
		prop: "jcxm",
		align: "center"
	},
	{
		label: "检查类型",
		prop: "jclx",
		align: "center",
		type: "select",
		dicUrl: "/api/blade-system/dict-biz/dictionary?code=hidden_danger_check_type",
		props: {
			label: "dictValue",
			value: "dictKey",
		}
	},
	{
		label: "检查方式",
		prop: "yhly",
		align: "center",
		type: "select",
		dicUrl: "/api/blade-system/dict-biz/dictionary?code=hidden_danger_check_method",
		props: {
			label: "dictValue",
			value: "dictKey",
		}
	},
	{
		label: "检查依据",
		prop: "yj",
		align: "center"
	},
	{
		label: "检查内容",
		prop: "jcnr",
		align: "center"
	}
]

export const settingOptionColumn = [
	{
		label: "检查标题",
		prop: "jcbt",
		rules: [{
			required: true,
			message: "请输入检查标题",
			trigger: "blur"
		}]
	},
	{
		label: "记录人员",
		prop: "jlry",
		rules: [{
			required: true,
			message: "请输入记录人员",
			trigger: "blur"
		}]
	},
	{
		label: "检查日期",
		prop: "jhjcrq",
		type: "date",
		format: "yyyy-MM-dd",
		valueFormat: "yyyy-MM-dd",
		rules: [{
			required: true,
			message: "请选择检查日期",
			trigger: "change"
		}]
	},
	{
		label: "检查组成员",
		prop: "jczcy",
		type: "select",
		multiple: true,
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		}
	},
	{
		label: "巡检人员",
		prop: "xjry",
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择巡检人员",
			trigger: "change"
		}]
	},
	{
		label: "受检对象",
		prop: "sjdx",
		type: "tree",
		dicData: [],
		props: {
			label: "title"
		},
		rules: [{
			required: true,
			message: "请选择受检对象",
			trigger: "change"
		}]
	},
	{
		label: "检查类型",
		prop: "jclx",
		type: "select",
		dicUrl: "/api/blade-system/dict-biz/dictionary?code=hidden_danger_check_type",
		props: {
			label: "dictValue",
			value: "dictKey",
		},
		rules: [{
			required: true,
			message: "请选择检查类型",
			trigger: "change"
		}]
	},
	{
		label: "检查项目",
		prop: "jcxm",
		span: 24,
		slot: true,
		formslot: true,
		rules: [{
			required: true,
			message: "请选择检查项目",
			trigger: "change"
		}]
	},
	{
		label: "",
		prop: "jcxmTags",
		span: 24,
		slot: 24,
		formslot: 24
	}
]

export const riOptionColumn = [
	{
		label: "检查结论",
		prop: "jcjl",
		disabled: true,
		type: "select",
		dicData: [{
			label: "未检",
			value: "1"
		}, {
			label: "正常",
			value: "2"
		}, {
			label: "异常",
			value: "3"
		}]
	},
	{
		label: "隐患级别",
		prop: "yhjb",
		disabled: true
	},
	{
		label: "问题描述",
		prop: "wtms",
		disabled: true,
		span: 24,
		type: "textarea"
	}
]

export const riOptionGroup = [
	{
		label: "整改设置",
		prop: "improveSetting",
		icon: "el-icon-setting",
		display: false,
		column: [
			{
				label: "整改方式",
				prop: "zgfs",
				type: "select",
				dicData: [{
					label: "立刻整改",
					value: 1
				}, {
					label: "整改通知",
					value: 2
				}],
				rules: [{
					required: true,
					message: "请选择整方式",
					trigger: "change"
				}]
			},
			{
				label: "责任部门",
				prop: "fzzgbm",
				type: "tree",
				dicData: [],
				props: {
					label: "title"
				},
				rules: [{
					required: true,
					message: "请选择整改部门",
					trigger: "change"
				}]
			},
			{
				label: "负责人",
				prop: "zgfzr",
				type: "select",
				dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
				props: {
					label: "realName",
					value: "id",
				},
				rules: [{
					required: true,
					message: "请选择整改负责人",
					trigger: "change"
				}]
			},
			{
				label: "相关附件",
				prop: "xgfj",
				slot: true,
				formslot: true,
				rules: [{
					required: true,
					message: "请选择相关附件",
					trigger: "change"
				}]
			}
		]
	}
]